home *** CD-ROM | disk | FTP | other *** search
- Path: uwm.edu!uwvax!news
- From: Tuan Truong <truong>
- Newsgroups: comp.lang.c
- Subject: [help] Please help me to compile my programs
- Date: 9 Jan 1996 19:36:57 GMT
- Organization: University of WI, Madison -- Computer Sciences Dept.
- Message-ID: <4cug4p$3le@spool.cs.wisc.edu>
- NNTP-Posting-Host: sun14.cs.wisc.edu
- Mime-Version: 1.0
- Content-Type: text/plain
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.1N (X11; I; SunOS 4.1.3 sun4m)
- X-URL: file:/u/t/r/truong/c_ques
-
- Hello,
-
- Can someone teach me how to write a MAKEFILE that will compile my 3 programs
- and link them to produce a .EXE
-
- If possible, please send me some sample MAKEFILES.
-
- by the way, I am using a DOS version of C++ compiler. Everything should be
- done at command line.
-
- Thank you very much!!!!!
-
- Tuan Truong
-
- *******prog1.c******
- #include "prog3_h.h" //prog3_h.h has functions' prototypes for the functions
- in prog3.c
- #include "prog2_h.h" //prog2_h.h has functions' prototypes for the functions
- in prog2.c
- int main()
- {
- foo1(); //from prog2.c
- foo2(); //from prog2.c
- foo3(); //from prog3.c
- return 0;
- }
-
-
- **********************
-
-
-
- *******prog2.c******
- #include "prog2_h.h" // has functions' prototypes
-
- int foo1();
- {
- return 0;
- }
- int foo2();
- {
- return 0;
- }
- **********************
-
-
- *******prog3.c******
- #include "prog3_h.h" // has functions' prototypes
-
- int foo3();
- {
- return 0;
- }
-
- **********************
-
-
-
-
-
-